package entity;

public class Goods {

    //商品编号
    private int goodsId;

    //商品名称
    private String name;

    //种类
    private String type;

    //数量
    private int count;

    //入库价格
    private double price;

    //销售价格
    private double shellPrice;

    //录入人
    private User user;

    public Goods(){}

    public Goods(int id,String name,String type,int count,double price,double shellPrice,User user){
        this.goodsId = id;
        this.name = name;
        this.type = type;
        this.count = count;
        this.price = price;
        this.shellPrice = shellPrice;
        this.user = user;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getShellPrice() {
        return shellPrice;
    }

    public void setShellPrice(double shellPrice) {
        this.shellPrice = shellPrice;
    }

    public User getUser() {
        return user;
    }
    public void setUser(User user) {
        this.user = user;
    }


    @Override
    public String toString() {
        return "Goods{" +
                "goodsId=" + goodsId +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", count=" + count +
                ", price=" + price +
                ", shellPrice=" + shellPrice +
                ", user=" + user +
                '}';
    }
}
